home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3025 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Typedefs (was Re: Hungarian Notation
  5. Date: 21 Jan 1996 18:24:56 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4du0do$2q9@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe11.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. (I'm eliminating the other newsgroups from this thread 
  15. since the subject matter is primarily for C/C++ crowd.) 
  16. Kazimir Kylhelky wrote: 
  17.  
  18. >........ I avoid typedefs like the plague, even for structures. I 
  19. >much rather write the longer form. 
  20. >    void myfunction(struct whatever *x); 
  21.  
  22. Typedef, like any other language feature, is a tool.  A tool 
  23. can be overused as well as underused.  Noone can say 
  24. precisely how much a tool should be used, but avoiding 
  25. its use altogether IMO falls in the underused category. 
  26.  
  27. I propose that a programmer who uses only a subset of 
  28. the language is less efective than one who uses the 
  29. all of it -- all else being equal. 
  30.  
  31. -- 
  32. Pete Grant 
  33. Kalevi, Inc. 
  34. Object Oriented Software Development
  35.